package com.qust.enDecrpytion.util.net.status;


import com.qust.agreement.result.Result;
import com.qust.enDecrpytion.util.net.HState;
import com.qust.enDecrpytion.util.net.NetTool;

import java.util.Map;

public class DeleteState extends HttpState {
    @Override
    public <T> Result<?> handle(String Url, HState state, Map<String, String> head, Map<String ,String > pathValue, T body, NetTool tool){
        if (state.getCode() != 3){
            tool.setState(new PostState());
            return tool.request(Url,state,head, pathValue,body);
        }
        return this.request(Url,state,head,pathValue,body);
    }
}
